package com.aspose.cells;

class zbdl extends zcj {
   zbdl(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      float var7 = 0.0F;
      float var8 = 0.0F;
      float var9 = 0.0F;
      float var10 = 0.0F;
      float var11 = 0.0F;
      if (this.e.l.a.size() == 3) {
         var9 = var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
         var10 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         var11 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
      } else if (this.e.l.a.size() == 2) {
         var9 = var4 * 0.41351852F;
         var10 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         var11 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
      } else if (this.e.l.a.size() == 1) {
         var9 = var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
         var10 = var4 * 0.8565278F;
         var11 = var5 * 0.33185184F;
      } else {
         var9 = var4 * 0.41351852F;
         var10 = var4 * 0.8565278F;
         var11 = var5 * 0.33185184F;
      }

      var6 = var4 - var9 - 2.0F * (var4 - var10);
      var7 = var4 - var10 + var6 / 2.0F;
      com.aspose.cells.b.a.b.a.ze var12 = new com.aspose.cells.b.a.b.a.ze();
      float var13 = var7 - var6 / 2.0F;
      com.aspose.cells.b.a.b.zo[] var14 = new com.aspose.cells.b.a.b.zo[9];
      switch(this.e.a) {
      case 1:
         var14[0] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - 2.0F * var7), var3 + var11);
         var14[1] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var7), var3);
         var14[2] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var11);
         var14[3] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var13), var3 + var11);
         var14[4] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var13), var3 + var5);
         var14[5] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5);
         var14[6] = new com.aspose.cells.b.a.b.zo(var2, var3 + (var5 - var6));
         var14[7] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var6 - var13), var3 + (var5 - var6));
         var14[8] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var6 - var13), var3 + var11);
         break;
      case 2:
         var14[0] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - 2.0F * var7), var3 + var5 - var11);
         var14[1] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var7), var3 + var5);
         var14[2] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 - var11);
         var14[3] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var13), var3 + var5 - var11);
         var14[4] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var13), var3);
         var14[5] = new com.aspose.cells.b.a.b.zo(var2, var3);
         var14[6] = new com.aspose.cells.b.a.b.zo(var2, var3 + var6);
         var14[7] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var6 - var13), var3 + var6);
         var14[8] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var6 - var13), var3 + var5 - var11);
         break;
      case 3:
         var14[0] = new com.aspose.cells.b.a.b.zo(var2 + 2.0F * var7, var3 + var5 - var11);
         var14[1] = new com.aspose.cells.b.a.b.zo(var2 + var7, var3 + var5);
         var14[2] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 - var11);
         var14[3] = new com.aspose.cells.b.a.b.zo(var2 + var13, var3 + var5 - var11);
         var14[4] = new com.aspose.cells.b.a.b.zo(var2 + var13, var3);
         var14[5] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3);
         var14[6] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var6);
         var14[7] = new com.aspose.cells.b.a.b.zo(var2 + var6 + var13, var3 + var6);
         var14[8] = new com.aspose.cells.b.a.b.zo(var2 + var6 + var13, var3 + var5 - var11);
         break;
      case 4:
         var14[0] = new com.aspose.cells.b.a.b.zo(var2 + 2.0F * var7, var3 + var11);
         var14[1] = new com.aspose.cells.b.a.b.zo(var2 + var7, var3);
         var14[2] = new com.aspose.cells.b.a.b.zo(var2, var3 + var11);
         var14[3] = new com.aspose.cells.b.a.b.zo(var2 + var13, var3 + var11);
         var14[4] = new com.aspose.cells.b.a.b.zo(var2 + var13, var3 + var5);
         var14[5] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5);
         var14[6] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 - var6);
         var14[7] = new com.aspose.cells.b.a.b.zo(var2 + var6 + var13, var3 + var5 - var6);
         var14[8] = new com.aspose.cells.b.a.b.zo(var2 + var6 + var13, var3 + var11);
      }

      var12.b(var14);
      return var12;
   }
}
